'use strict';

function router(app) {
  app.router.get('/tr069/onulist', app.controller.tr069.list);
  app.router.get('/tr069/getOnlineStates', app.controller.tr069.getOnlineStates);
  app.router.get('/tr069/getSendStates', app.controller.tr069.getSendStates);
  app.router.get('/tr069/getGroups', app.controller.tr069.getGroups);
  app.router.get('/tr069/getFirmwareVersions', app.controller.tr069.getFirmwareVersions);
  app.router.get('/tr069/getVoiceStates', app.controller.tr069.getVoiceStates);
  app.router.get('/tr069/refresh', app.controller.tr069.refresh);
  app.router.post('/tr069/createGroup', app.controller.tr069.createGroup);
  app.router.post('/tr069/deleteGroup', app.controller.tr069.deleteGroup);
  app.router.post('/tr069/addGroup', app.controller.tr069.addGroup);
  app.router.post('/tr069/subGroup', app.controller.tr069.subGroup);
  app.router.get('/tr069/getConfigTemplateList', app.controller.tr069.getConfigTemplateList);
  app.router.post('/tr069/addConfigTemplate', app.controller.tr069.addConfigTemplate);
  app.router.post('/tr069/updateConfigTemplate', app.controller.tr069.updateConfigTemplate);
  app.router.post('/tr069/modifyConfigTemplates', app.controller.tr069.modifyConfigTemplates);
  app.router.get('/tr069/getOnuWanInfo', app.controller.tr069.getOnuWanInfo);
  app.router.get('/tr069/getBusinessTemplateList', app.controller.tr069.getBusinessTemplateList);
  app.router.get('/tr069/getBusinessTemplates', app.controller.tr069.getBusinessTemplates);
  app.router.post('/tr069/createBusinessTemplate', app.controller.tr069.createBusinessTemplate);
  app.router.post('/tr069/updateBusinessTemplate', app.controller.tr069.updateBusinessTemplate);
  app.router.post('/tr069/createDefaultTemplates', app.controller.tr069.createDefaultTemplates);
  app.router.post('/tr069/modifyBusinessTemplates', app.controller.tr069.modifyBusinessTemplates);
  app.router.post('/tr069/sendTemplate', app.controller.tr069.sendTemplate);
  app.router.post('/tr069/updateONUInfos', app.controller.tr069.updateONUInfos);
  app.router.post('/tr069/updateAllOnus', app.controller.tr069.updateAllOnus);
  app.router.get('/tr069/getAllOnus', app.controller.tr069.getAllOnus);
  app.router.post('/tr069/onuFindNameChange',app.controller.tr069.nameChange);
}
module.exports = {
  router,
};
